package com.cupk;

import java.util.Scanner;

public class StartStraight {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数据");
        int x = sc.nextInt();
        int t = x;
        int num = 0;
        while (x!=0){
            int ge = x % 10;
            x = x /10;
            num = num * 10 + ge;

        }
        System.out.println(num);
        System.out.println(t == num);



//        int x = 12345;
//        //获得个位
//        int ge = x % 10;
//        int shi = x / 10 % 10;
//        //拼接
//        int result=ge *10+shi;
//        System.out.println(result);
    }

}
/*int
*
*
* */
